#pragma once
#include <stdint.h>

struct sector_node
{
    uint32_t sector;
    void* data;
    uint32_t count;
    struct sector_node *next;
};

struct sector_list
{
    struct sector_node *head;
    uint32_t nodes;
    uint32_t sector_size;
};
struct sector_list* alloc_sector_list(uint32_t size);
struct sector_node* sector_list_pop(struct sector_list* list);

struct sector_node* alloc_sector_node(struct sector_list* list, uint32_t sector);
void free_sector_node(struct sector_node* node);